package com.jdjc.auth.domin.convert;

import com.jdjc.auth.domin.entity.AuthPermissionBO;
import com.jdjc.auth.domin.entity.AuthRolePermissionBO;
import com.jdjc.auth.infra.basic.entity.AuthPermission;
import com.jdjc.auth.infra.basic.entity.AuthRolePermission;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 该接口使用了 @Mapper 注解。这个接口与 MapStruct 库一起使用，该库是一个 Java 注解处理器库，用于自动生成 Java 对象之间的映射代码。
 */
@Mapper
public interface AuthRolePermissionDominConverter {
    AuthRolePermissionDominConverter INSTANCE= Mappers.getMapper(AuthRolePermissionDominConverter.class);


    AuthRolePermission convertBOToEntity(AuthRolePermissionBO authRolePermissionBO);
    AuthRolePermissionBO convertEntityToBO(AuthRolePermission authRolePermission);
    List<AuthRolePermissionBO> AuthRolePermissionListToBOList(List<AuthRolePermission> authRolePermissionList);

}
